{if isset($smarty.session.useredit)}
	<h1>Kullanici degisikligi yapildi!</h1>
	<p>Sayin <em>{$smarty.session.username}</em>, hesabinizdaki degisiklikler kaydedildi.</p>
{else}
	{if $my_session->logged_in}
		<h1>Kullanici degisikligi : {$smarty.session.username}</h1>
		{if $my_form->num_errors > 0}
			<p>{$my_form->num_errors} tane hata bulundu.</p>
		{/if}
		<form action="process.php" method="POST">
			<input type="hidden" name="subedit" value="1">
			<table>
				<tr>
					<td class="alignright"><label>Eski sifre:</label></td>
					<td>
						{$my_form->error("currpass")}
						<input type="password" name="curpass" maxlength="30" value="{$my_form->value('curpass')}"/>
					</td>
				</tr>
				<tr>
					<td class="alignright"><label>Yeni sifre:</label></td>
					<td>
						{$my_form->error("newpass")}
						<input type="password" name="newpass" maxlength="30" value="{$my_form->value('newpass')}"/>
					</td>
				</tr>
				<tr>
					<td class="alignright"><label>E-Posta:</label></td>
					<td>
						{$my_form->error("email")}
						{if $my_form->value('email') == ""}
							<input type="text" name="email" maxlength="50" value="{$my_session->userinfo.email}"/><br/>
						{else}
							<input type="text" name="email" maxlength="50" value="{$my_form->value('email')}"/><br/>
						{/if}
					</td>
				</tr>
				<tr>
					<td></td><td><input type="submit" value="Kaydet"/></td>
				</tr>
			</table>
		</form>	
	{/if}
{/if}	